#ifndef ERRORHANDLER_H_
#define ERRORHANDLER_H_
#include "../clientHandler.h"

/**
 ** author: Haim Tsolker.
 ** handleRRQ
 ** 
 ** request - requestStruct which contain all of the required information
 **           for executing a request step
 ** data - message - a request step to be sent to the client
 ** 
 ** file is opened for reading at position data->pos and wrap 512 characters of data.
 ** if eof was reached, then < 512 characters will be wrapped.
 ** the amount of character that were wrapped is saved in data->size. 
 ** in case of error, data is turned into a proper error message.
 **/
msg_p handleError (request_p request, msg_p data);

#endif /*ERRORHANDLER_H_ */
